﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 扑克
{
  public  enum 牌值 { PA = 1, P2 = 2, P3 = 3, P4 = 4, P5 = 5, P6 = 6, P7 = 7, P8 = 8, P9 = 9, P10 = 10, PJ = 11, PQ = 12, PK = 13 }
  public enum 花色 { 黑桃, 红桃, 梅花, 方块 }
    public class Poker
    {
        private string _牌值, _花色;
        private ArrayList 一副牌 = new ArrayList();

        public Poker() { }

        public Poker(string 牌值, string 花色)
        {
            this._牌值 = 牌值;
            this._花色 = 花色;
        }
        public void 生成一副牌()
        {
            for (int i =1; i <4; i++)
            {//外循环初始化扑克的花色  
                for (int j =1; j <= 13; j++)
                {//外层循环初始化扑克的点数  
                    一副牌.Add(new Poker(
                        Enum.GetName(typeof(花色), i),
                        Enum.GetName(typeof(牌值), j)
                        ));
                }
            }
        }
    }
}
